import styled from 'styled-components';

export const FlexRowBox = styled.div`
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
`;

export const FlexColumnBox = styled.div`
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
`;

export const TopSearchStyle = styled(FlexRowBox)`
  background-color: #f3f3f3;
  height: 44px;
  padding: 8px 12.5px;

  .table-ico {
    margin-right: 6px;
    width: 18px;
    height: 15px;
  }
  .table-name {
    color: #1f1f1f;
    font-weight: 500;
    font-size: 14px;
  }
  .top-search {
    width: 263px;
    height: 28px;
    border: none;
    border-radius: 3px;
    background-color: white;
    padding-left: 10px;
    font-size: 14px;
    font-weight: 400;
  }
`;

export const BannerStyle = styled.div`
  background-color: white;
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
  img {
    display: block;
    width: 351px;
    height: 90px;
    border-radius: 15px;
  }
`;

export const CatgrayStyle = styled.div`
  height: calc(100vh - 60px - 150px);
  background-color: #f4f4f4;
  overflow-y: scroll;
  .box {
    height: 39px;
    line-height: 39px;
    text-align: center;
    .container {
      height: 26px;
      line-height: 26px;
      font-size: 13px;
      font-weight: 400;
      color: #282828;
    }
  }
`;

export const GoodsListStyle = styled.div`
  height: calc(100vh - 60px - 150px);
  overflow-y: scroll;
  background-color: white;
  padding: 14px 13px;
  .catgray-name {
    font-size: 13px;
    color: #333333;
    font-weight: bold;
  }

  .goods-list {
    padding: 0 0;
    /* margin: 0 0; */
    list-style: none;
    /* margin-bottom: 12px; */
  }
`;

export const GoodsStyle = styled.div`
  .flex-row {
    display: flex;
    justify-content: space-between;
  }
  .flex-column {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
  }
  line-height: 1;
  .goods {
    box-sizing: border-box;
    height: 60px;
    width: 100%;
    /* border: solid lightpink 1px; */
    display: flex;
    align-items: center;
    justify-content: start;
    .goods-left {
      margin-right: 10px;
      > img {
        width: 60px;
        height: 60px;
      }
    }
    .goods-right {
      /* width: 200px; */
      width: 100%;
      height: 100%;
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      justify-content: space-between;
      /* align-items: center; */
      .goods-name {
        color: #1a1a1a;
        font-weight: 500;
        font-size: 14px;
      }
      .goods-detail {
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        color: #969696;
        font-weight: 500;
        font-size: 10px;
        width: 190px;
      }
      .goods-right-bottom {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
        .goods-price {
          color: #d72121;
          font-weight: bold;
          font-size: 14px;
        }
        .goods-num {
          align-items: center;
          width: 55px;
          height: 20px;
          > img {
            width: 16px;
            height: 16px;
          }
        }
      }
    }
  }
`;

export const BottomStyle = styled(FlexRowBox)`
  padding: 8px 8px;
  height: 60px;
  width: 100%;
  border: solid 1px #cccccc;
  position: absolute;
  bottom: 0;

  .bottom-left {
    padding-left: 14px;
    .total-num {
      color: white;
      position: absolute;
      border-radius: 50%;
      background: #e01616;
      width: 19px;
      height: 19px;
      text-align: center;
      line-height: 19px;
      top: 5px;
      left: 48px;
    }
    .total-price {
      margin-left: 12px;
      color: #181818;
      .rmb {
        margin-top: 4px;
        font-size: 16px;
        font-weight: 500;
      }
      .price {
        font-size: 21px;
        font-weight: bold;
      }
    }
  }
  .bottom-right {
    .submit-order {
      color: white;
      background-color: #fa541c;
      height: 44px;
      width: 77px;
      margin-left: 19px;
      border-radius: 5px;
    }
  }
`;

export const ShopingCartStyle = styled.div`
  height: 347px;
  overflow-y: scroll;
  .top {
    margin-bottom: 12px;
  }
  .close {
    width: 20px;
    height: 20px;
  }
  .title {
    font-size: 16px;
    font-weight: bold;
    color: #474747;
  }

  .catgray-name {
    font-size: 13px;
    color: #333333;
    font-weight: bold;
  }

  .goods-list {
    padding: 0 0;
    margin: 0 0;
    list-style: none;
    margin-bottom: 12px;
  }
`;

export const OrderListStyle = styled.div`
  height: 347px;
  .order-list {
    overflow-y: scroll;
    .goods {
      border-bottom: dashed lightpink 1px;
      margin-bottom: 12px;
      justify-content: flex-start;
      > img {
        width: 60px;
        height: 60px;
      }
      .goods-right {
        width: 100%;
        align-items: flex-start;
        .goods-name {
          color: #1a1a1a;
          font-weight: bold;
          font-size: 14px;
        }
        .goods-right-bottom {
          width: 100%;
          .goods-price {
            color: #d72121;
            font-weight: 500;
            font-size: 14px;
          }
          .goods-num {
            color: #1a1a1a;
            font-weight: bold;
            font-size: 14px;
          }
        }
      }
    }
  }
  p {
    text-align: left;
    font-size: 16px;
    font-weight: bold;
    color: #474747;
  }
`;
